package com.gong.DesignPattern.DecoratorPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/16 0016 9:10
 */
public abstract class Decorator implements Shape{

    private Shape shape;

    public Decorator(Shape shape) {
        this.shape = shape;
    }

    @Override
    public void draw() {
        shape.draw();
    }
}
